var storeHerbTextArea = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'text'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../herbServlet',
            doClass:'herbTextArea',
            preName:{herId:herId}
        })
    });
    storeHerbTextArea.setDefaultSort('id', 'desc');

    function pctChange(val){

        var v = '</div><div style="word-wrap:break-word; overflow:hidden;" >' + val + '</div><div>';
     
        return v;
    }
    // create the Grid
    var gridHerbTextArea = new Ext.grid.GridPanel({
        store: storeHerbTextArea,
        shadow:true,
        
        border:false,
        columns: [
            {id:'AA',header: "条号", width: 50,sortable: true, dataIndex: 'id',menuDisabled:true},
            {header: "原文", width: 650, renderer:pctChange, sortable: true, dataIndex: 'text',menuDisabled:true}
        ],
         iconCls:'icon-grid',
         autoHeight:true,
         width:700
    });

    gridHerbTextArea.render('gridHerbTextArea');
    storeHerbTextArea.load({params:{doClass:'herbTextArea',herId:herId}});